<%@page contentType="text/html; charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>出国人员个人资料表</title>
    <script src="/lib/bootstrap/jquery-1.12.4.min.js"></script>
    <script src="/lib/bootstrap/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="/lib/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="/css/common.css"/>
    <link rel="stylesheet" href="/css/common-user.css"/>
</head>
<body>
<div class="modal-header" id="modal-page-title">
    <div class="row">
        <div class="page-header" id="page-title">
            <div class="col-md-1"></div>
            <div class="col-md-6">
                <img src="/images/common/cuitLogo.png" id="header-cuit-logo"/><small class="text-info" id="header-web-title">教师出国申请平台</small>
            </div>
            <div class="col-md-4 text-center" id="page-title-right">
                <div class="col-md-3">
                    <small class="text-center title-menu" id=""><a href="home.jsp">首页</a> </small>
                </div>
                <div class="col-md-3">
                    <label class="text-center title-menu" id="">个人中心</label>
                </div>
                <div class="col-md-6">
                    <label class="text-center title-menu" id="">欢迎你，XXX</label>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="modal-body">
    <div class="panel panel-default">
        <!-- Default panel contents -->
        <div class="panel-heading text-center">审核中</div>
        <div class="panel-body">
            <p>审核结果会发送到您的邮箱中</p>
        </div>

        <!-- Table -->
        <div class="div-table">
            <table class="table table-bordered table-hover table-striped">
                <thead>
                <tr>
                    <th data-field="id">申请表格</th>
                    <th data-field="name">申请时间</th>
                    <th data-field="price">申请人</th>
                    <th data-field="price">状态</th>
                    <th data-field="id">操作</th>
                </tr>
                </thead>
                <tbody>
                <c:choose>
                    <c:when test="${formOnePersonInformations.lists!=null&&fn:length(formOnePersonInformations.lists)>0}">
                        <c:forEach items="${formOnePersonInformations.lists}" var="item">
                            <tr>
                                <td>出国人员信息表</td>
                                <td><fmt:formatDate value="${item.birthDate}" pattern="yyyy-MM-dd"/></td>
                                <td>${item.name}</td>
                                <td>申请中</td>
                                <td><button class="btn-sm btn-info" href="/formOne/getInfo?id=${item.id}">详细信息</button>
                                    <button class="btn-sm btn-danger">取消申请</button>
                                </td>
                            </tr>
                        </c:forEach>
                    </c:when>
                    <c:otherwise>
                        暂无数据
                    </c:otherwise>
                </c:choose>

                <!--<tr>
                    <td>出国人员信息表</td>
                    <td>2018-10-15</td>
                    <td>XXX</td>
                    <td>申请中</td>
                    <td><button class="btn-sm btn-info">详细信息</button>
                        <button class="btn-sm btn-danger">取消申请</button>
                    </td>
                </tr>
                <tr>
                    <td>出国人员信息表</td>
                    <td>2018-10-15</td>
                    <td>XXX</td>
                    <td>申请中</td>
                    <td><button class="btn-sm btn-info">详细信息</button>
                        <button class="btn-sm btn-danger">取消申请</button>
                    </td>
                </tr>
                <tr>
                    <td>出国人员信息表</td>
                    <td>2018-10-15</td>
                    <td>XXX</td>
                    <td>申请中</td>
                    <td><button class="btn-sm btn-info">详细信息</button>
                        <button class="btn-sm btn-danger">取消申请</button>
                    </td>
                </tr>
                <tr>
                    <td>出国人员信息表</td>
                    <td>2018-10-15</td>
                    <td>XXX</td>
                    <td>申请中</td>
                    <td><button class="btn-sm btn-info">详细信息</button>
                        <button class="btn-sm btn-danger">取消申请</button>
                    </td>
                </tr>
                <tr>
                    <td>出国人员信息表</td>
                    <td>2018-10-15</td>
                    <td>XXX</td>
                    <td>申请中</td>
                    <td><button class="btn-sm btn-info">详细信息</button>
                        <button class="btn-sm btn-danger">取消申请</button>
                    </td>
                </tr>-->
                </tbody>
            </table>
        </div>
        <div class="panel-footer">

            <div class="col-md-6 text-center text-center-panel-footer">共${formOnePersonInformations.totalPage}页,当前在第${formOnePersonInformations.currPage}页</div>
            <div class="col-md-6 text-center text-center-panel-footer">
                <ul class="pagination">
                    <li><a href="#">&laquo;</a></li>
                    <li><a href="#">1</a></li>
                    <li><a href="#">2</a></li>
                    <li><a href="#">3</a></li>
                    <li><a href="#">4</a></li>
                    <li><a href="#">5</a></li>
                    <li><a href="#">&raquo;</a></li>
                </ul>
            </ul></div>


        </div>
    </div>
</div>
<div class="modal-footer navbar-fixed-bottom text-center footer-common">
    四川省成都市西南航空港经济开发区学府路一段24号 | 航空港校区行政楼325办公室<br>
    © 2018 成都信息工程大学 版权所有
</div>
</body>
</html>